<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>3d地球</h1>
    <script src="echarts.min.js"></script>
    <script src="echarts-gl.js"></script>

    <div id="main" style="width: 600px; height: 400px"></div>
    <script type="text/javascript">
      var chartDom = document.getElementById("main");
      var myChart = echarts.init(chartDom);
      var option;

      option = {
        backgroundColor: "#000",
        globe: {
          baseTexture: "6.jpg",
          heightTexture: "7.jpg",

          displacementScale: 0.1,

          shading: "lambert",

          environment: "8",

          light: {
            ambient: {
              intensity: 0.1,
            },
            main: {
              intensity: 1.5,
            },
          },

          layers: [
            {
              type: "blend",
              blendTo: "emission",
              texture: "9.jpg",
            },
            {
              type: "overlay",
              texture: "10.jpg",
              shading: "lambert",
              distance: 5,
            },
          ],
        },
        series: [],
      };

      myChart.setOption(option);
    </script>
  </body>
</html>
